//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.aidong.dao.wills;

import com.aidong.dao.base.OrderSet;
import com.aidong.dao.wills.BaseDao;
import com.aidong.model.wills.PtPrice;
import java.util.List;
import org.springframework.stereotype.Repository;

@Repository
public class PtPriceDao extends BaseDao<PtPrice, Integer> {
	public PtPriceDao() {
	}

	public PtPrice getByCoachLevel(String ptCode, String coachLevel, int num) {
		return (PtPrice)this.getByWhere("ptCode=:p1 and coachLevel=:p2 and countMin<=:p3 and countMax>=:p4", new Object[]{ptCode, coachLevel, Integer.valueOf(num), Integer.valueOf(num)});
	}

	public List<PtPrice> getPtPriceList(String ptCode) {
		return this.queryList("ptCode=:p1", new Object[]{ptCode}, (new OrderSet()).asc("coachLevel"), -1);
	}
}
